import request from '@/utils/request'

// 获取咨询管理列表
export const getInformationListAPI = (params) => {
  return request({
    url: '/content/article',
    method: 'get',
    params
  })
}

// 新增咨询管理
export const addInformationAPI = (data) => {
  return request({
    url: '/content/article',
    method: 'post',
    data
  })
}

// 修改咨询管理数据回显
export const getInformationInfoAPI = (id) => {
  return request({
    url: '/content/article/' + id,
    method: 'get',
  })
}

// 修改咨询管理
export const editInformationAPI = (data) => {
  return request({
    url: '/content/article/' + data.id,
    method: 'put',
    data
  })
}

// 删除咨询管理
export const delInformationAPI = (id) => {
  return request({
    url: '/content/article/' + id,
    method: 'delete',
  })
}